/*
 * @Author: your name
 * @Date: 2021-11-29 15:43:15
 * @LastEditTime: 2021-11-29 16:35:54
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: /dome_umi/src/layouts/Header/index.js
 */
import React from 'react'
import styles from '../index.scss'
import { Menu } from 'antd';
import Link from 'umi/link'
import { withRouter } from 'umi';

const Headers = (props) => {
    console.log(props)
    return (
        <div className={styles.header}>
            <img src={require('../../assets/yay.jpg')} className={styles.logo}></img>
            <Menu className={styles.menus} theme="dark" mode="horizontal" selectedKeys={[props.location.pathname]}>
                <Menu.Item key="/">
                    <Link to="/">
                        首页
                    </Link>
                </Menu.Item>
            </Menu>
        </div>
    )
}


export default withRouter(Headers)